package com.zxh.blog.dao;

import com.zxh.blog.domain.Role;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoleDao {
	Role findRoleByPrimaryKey(Integer userid);

	List<Role> selectByList();

	Integer addRole(Role role);

	void updateRole(Role role);

	int deleteByIds(int[] ids);

	Integer insertRolePermission(@Param("roleId") Integer roleId, @Param("permissionId") Integer permissionId);

	void deletePerByRoleId(int roleId);
}
